package cn.timelost.hr.service;

import cn.timelost.hr.pojo.Attendance;
import cn.timelost.hr.pojo.Attendance2;
import cn.timelost.hr.vo.UnAttendanceVo;
import cn.timelost.hr.vo.input.AttendanceForm;
import com.github.pagehelper.PageInfo;
import org.springframework.cache.annotation.CacheEvict;

import java.sql.Date;
import java.util.List;

public interface AttendanceService {

    PageInfo<UnAttendanceVo> findUnAttendanceAll(int pageNum, int pageSize);

    PageInfo<Attendance> findAll(int pageNum, int pageSize, int personalId, Date beginDate, Date endDate);
    List<Attendance> all();
    Attendance find(int id);

    Attendance signUp(int personalId);
    Attendance signUp(AttendanceForm attendanceForm);

    public List<Attendance2> allView();
    public PageInfo<Attendance2> findAllView(int pageNum, int pageSize, int personalId, Date beginDate, Date endDate);

    Attendance signUpUn(int personalId);
}
